﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="GuestsInformation.aspx.cs" Inherits="PresentationLayerWebForms.GuestsInformation" %>

<%@ Register TagPrefix="uc" TagName="GuestInformation" Src="~/Controls/GuestInformation.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="clear">
    </div>
    <div class="info">
        <div id="booking_info">
            <div class="info_row">
                <div>
                    Arrival Date:</div>
                <div>
                    <asp:Label ID="lblArrivalDate" runat="server" Text="Label"></asp:Label>
                </div>
            </div>
            <div class="info_row">
                <div>
                    Departure Date:</div>
                <div>
                    <asp:Label ID="lblDepartureDate" runat="server" Text="Label"></asp:Label>
                 </div>
            </div>
            <div class="info_row">
                <div>
                    Room:</div>
                <div>
                    <asp:Label ID="lblRoom" runat="server" Text="Label"></asp:Label>
                 </div>
            </div>
            <div class="info_row">
                <div>
                    Nights:</div>
                    <div>
                        <asp:Label ID="lblNight" runat="server" Text="Label"></asp:Label>
                    </div>
            </div>
            <div class="info_row">
                <div>
                    Room Type:</div><div>
                        <asp:Label ID="lblRoomType" runat="server" Text="Label"></asp:Label>
                        </div>
            </div>
        </div>
        <div id="price_info">
            <div class="info_row">
                <div>
                    Room Charges:</div>
                <div>
                    <asp:Label ID="lblRoomCharges" runat="server" Text="Label"></asp:Label></div>
            </div>
            <div class="info_row">
                <div>
                    Tax:</div>
                <div>
                    0</div>
            </div>
            <div class="info_row">
                <div>
                    Discount:</div>
                <div>
                    <asp:Label ID="lblDiscount" runat="server" Text="Label"></asp:Label>
                 </div>
            </div>
            <div class="h_line_divider">
            </div>
            <div class="info_row total_price">
                <div>
                    Total Rate:</div>
                <div>
                    <asp:Label ID="lblTotalRate" runat="server" Text="Label"></asp:Label>
                </div>
            </div>
        </div>
    </div>
    <div id="guest_info">
        <div class="info">
            <div class="grid_column info_divider">
                <h4>
                    Personal Information</h4>

                <asp:Label ID="lblError" runat="server" Text=""></asp:Label>

                <div class="info_row">
                    <div>
                        First Name :</div>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfFirstName" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtFirstName" CssClass="errorMsg">First Name cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Last Name :</div>
                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfLastName" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtLastName" CssClass="errorMsg">Last Name cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Phone Number :</div>
                    <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfPhoneNumber" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtPhoneNumber" CssClass="errorMsg">Phone Number cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Email Address :</div>
                    <asp:TextBox ID="txtEmailAddress" runat="server" ControlToCompare="txtEmailAddress"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfEmailAddress" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtEmailAddress" CssClass="errorMsg">Email Address cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Retype Email Address :</div>
                    <asp:TextBox ID="txtRetypeEmailAddress" runat="server"></asp:TextBox>
                    <asp:CompareValidator runat="server" 
                        ErrorMessage="Both email should be the same." 
                        ControlToValidate="txtRetypeEmailAddress" ControlToCompare="txtEmailAddress" 
                        ID="cv1"></asp:CompareValidator>
                </div>
                <div class="info_row">
                    <div>
                        Address :</div>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtAddress" CssClass="errorMsg">Address cannot be blank.</asp:RequiredFieldValidator>
                
                </div>
                <div class="info_row">
                    <div>
                        Country :</div>
                    <asp:TextBox ID="txtCountry" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtCountry" CssClass="errorMsg">Country cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        City :</div>
                    <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtCity" CssClass="errorMsg">City cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Postal Code :</div>
                    <asp:TextBox ID="txtPostalCode" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtPostalCode" CssClass="errorMsg">Postal code cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <br />
                <br />
                <h4>
                    Other Guest Information</h4>
                <div class="info_row">
                    <div>
                        First Name :</div>
                    <asp:TextBox ID="txtGuestFirstName" runat="server"></asp:TextBox>
                </div>
                <div class="info_row">
                    <div>
                        Last Name :</div>
                    <asp:TextBox ID="txtGuestLastName" runat="server"></asp:TextBox>
                </div>
            </div>
            <div class="grid_column">
                <div>
                    <h4>Payment Information</h4>
                </div>
                <div class="info_row">
                    <div>
                        Payment Type :</div>
                    <asp:DropDownList ID="ddlPaymentType" runat="server">
                        <asp:ListItem>Master</asp:ListItem>
                        <asp:ListItem>AmericanExpress</asp:ListItem>
                        <asp:ListItem>Visa</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="info_row">
                    <div>
                        Card Holder Name :</div>
                    <asp:TextBox ID="txtCardHolderName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtRetypeEmailAddress" CssClass="errorMsg">Card holder name cannot be blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Card Number :</div>
                    <asp:TextBox ID="txtCreditCardNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtCreditCardNumber" CssClass="errorMsg">Credit card number cannot blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Security Code :</div>
                    <asp:TextBox ID="txtSecurityCode" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtSecurityCode" CssClass="errorMsg">Security Field cannot blank.</asp:RequiredFieldValidator>
                </div>
                <div class="info_row">
                    <div>
                        Expiry Date :</div>
                    <asp:TextBox ID="txtExpiryDate" runat="server"></asp:TextBox>
                    (DD/MM/YYYY)<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtExpiryDate" CssClass="errorMsg">Expiry date cannot be blank.</asp:RequiredFieldValidator>
                </div>

                <div class="btn_row">
                    <asp:Button ID="btnBookReservation" runat="server" Text="Book Reservation" 
                        class="btn btn-success" onclick="btnBookReservation_Click" />
                    
                </div>
            </div>
        </div>
    </div>
</asp:Content>
